package com.example.lenovo.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyBroadCast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action=intent.getAction();
        if(action.equals("STU_HAD_INSERT")){
            Log.e("MyBroadCast", "学生表插入了数据" );
        }

        if(action.equals("STU_HAD_DELETE")){
            Log.e("MyBroadCast", "学生表删除了数据" );
        }

        if(action.equals("STU_HAD_UPDATE")){
            Log.e("MyBroadCast", "学生表更新了数据" );
        }

        if(action.equals("SCO_HAD_INSERT")){
            Log.e("MyBroadCast", "分数表插入了数据" );
        }

        if(action.equals("SCO_HAD_DELETE")){
            Log.e("MyBroadCast", "分数表删除了数据" );
        }

        if(action.equals("SCO_HAD_UPDATE")){
            Log.e("MyBroadCast", "分数表更新了数据" );
        }


    }
}
